projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a8f068
)
gesture swipe: Use GdkEvent API
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 26 Aug 2017 14:53:01 +0000
(10:53 -0400)
committer
Carlos Garnacho
<carlosg@gnome.org>
Tue, 19 Sep 2017 16:39:03 +0000
(18:39 +0200)
gtk/gtkgestureswipe.c
patch
|
blob
|
history
diff --git
a/gtk/gtkgestureswipe.c
b/gtk/gtkgestureswipe.c
index bcdd2d12bad2d41342834d02f89392cf2753d547..bb35572761ed2178eae33872421187e486033a6f 100644
(file)
--- a/
gtk/gtkgestureswipe.c
+++ b/
gtk/gtkgestureswipe.c
@@
-86,10
+86,13
@@
gtk_gesture_swipe_filter_event (GtkEventController *controller,
if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_SWIPE)
{
guint n_points;
+ guint n_fingers;
g_object_get (G_OBJECT (controller), "n-points", &n_points, NULL);
- if (event->touchpad_swipe.n_fingers == n_points)
+ gdk_event_get_touchpad_gesture_n_fingers (event, &n_fingers);
+
+ if (n_fingers == n_points)
return FALSE;
else
return TRUE;